// 兼容 IE
// https://github.com/zloirock/core-js/blob/master/docs/2019-03-19-core-js-3-babel-and-a-look-into-the-future.md#babelpolyfill
import 'core-js/stable'
import 'regenerator-runtime/runtime'
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// import { vantPlugins } from './plugins/vant'

// 安装基础组件 与自定义组件
// import BaseComponent from './components/base'
// import CustomComponent from './components/component'

// 全局注册filters
// import './filters'

// 全局注册指令
import { customDirective } from './directive'

const app = createApp(App)
app.use(router)
app.use(store)

// app.use(BaseComponent, {})
// app.use(CustomComponent, {})
// app.use(vantPlugins)

app.directive('custom', customDirective)
app.mount('#app')

// 开发环境下面使用vConsole进行调试
if (process.env.NODE_ENV === 'development') {
  const VConsole = require('vconsole')
  new VConsole()
}
